<!--{include(pe_tpl('header.html'));}-->
<div class="right_page">
	<div class="now">
		<a href="javascript:;" class="sel">{$menutitle}<i></i></a>
		<div class="clear"></div>
	</div>
	<form method="post" id="form">
	<div class="right_main">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="wenzhang mat20">
		<tr>
			<td align="right" width="200">显示终端：</td>
			<td>{$ini['menu_client'][$info['menu_client']]}</td>
		</tr>
		<tr>
			<td align="right">导航名称：</td>
			<td><input type="text" name="info[menu_name]" value="{$info['menu_name']}" class="inputall input200" /> <span class="c888">（如：简好网络）</span></td>
		</tr>
		<tr>
			<td align="right">链接地址：</td>
			<td>
				<input type="text" name="info[menu_url]" value="{$info['menu_url']}" class="inputall input600 mar10" />
				<select class="inputselect" id="url_btn" style="display:none">
				<option value="">选择常用链接...</option>
				<!--{foreach($menu_urllist as $k=>$v):}-->
				<option value="{$info['menu_client'] == 'h5' ? $v['minapp_url'] :$v['url']}">{$k}</option>
				<!--{endforeach;}-->
				</select>
			</td>
		</tr>
		<!--{if(in_array($info['menu_client'], array('h5'))):}-->
		<tr>
			<td align="right">导航图标：</td>
			<td id="upload">
				<div class="upload_box fl" style="width:120px;height:120px">
					<img src="{pe_thumb($info['menu_logo'])}" class="upload_img" />
					<input type="hidden" name="info[menu_logo]" value="{$info['menu_logo']}" class="upload_val">
				</div>
				<span class="c999 fl mal10" style="margin-top:40px">（尺寸：200*200）</span>
				<div class="clear"></div>
			</td>
		</tr>
		<!--{endif;}-->
		<tr>
			<td align="right">显示顺序：</td>
			<td><input type="text" name="info[menu_order]" value="{$info['menu_order']}" class="inputall input100" /></td>
		</tr>
		<tr>
			<td align="right">开启状态：</td>
			<td class="layui-form">
				<input type="checkbox" name="menu_state" value="1" <!--{if($info['menu_state']):}-->checked<!--{endif;}--> lay-skin="switch" lay-text="开启|关闭" />
			</td>
		</tr>
		</table>
	</div>
	<div class="right_bottom center">
		<input type="hidden" name="pe_token" value="{$pe_token}" />
		<input type="hidden" name="pesubmit" value="{$pe_token}" />
		<input type="button" value="提 交" class="tjbtn">
	</div>
	</form>
</div>
<link rel="stylesheet" href="{$pe['host']}include/plugin/layui/css/layui.css">
<script src="{$pe['host']}include/plugin/layui/layui.js"></script>
<link rel="stylesheet" href="{$pe['host']}include/plugin/plupload/{$cache_setting['upload_server']}/style.css">
<script src="{$pe['host']}include/plugin/plupload/{$cache_setting['upload_server']}/plupload.min.js"></script>
<script src="{$pe['host']}include/plugin/plupload/{$cache_setting['upload_server']}/upload.js"></script>
<script type="text/javascript">
$(function(){
	$("#upload").pe_upload();
	$("#url_btn").change(function(){
		var menu_url = $("#url_btn option:selected").val();
		if (menu_url != '') {
			$(":input[name='info[menu_url]']").val(menu_url);
		}
	})
	$(":button").click(function(){
		pe_submit("{pe_nowurl()}", function(json){
			if (json.code == 1) pe_open('back', 1000);
		});
	})
})
layui.use(['form'], function(){
	form = layui.form;
});
</script>
<!--{include(pe_tpl('footer.html'));}-->